import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './api-tools/router'
import 'tdesign-vue-next/es/style/index.css';



// createApp(App).mount('#app').$nextTick(() => {
//   // Use contextBridge
//   window.ipcRenderer.on('main-process-message', (_event, message) => {
//     console.log(message)
//   })
// })


import { IpcRenderer } from 'electron'


declare global {
  interface Window {
    ipcRenderer: IpcRenderer
  }
}



const app=createApp(App)
app.use(router)
app.mount('#app')


